package ModelImplementation

type DirectMethod struct {
	itsBank string
	itsAccount string
}

func (d *DirectMethod)newDirectMethod(bank string, account string)  {
	d.itsBank = bank
	d.itsAccount = account
}

func (d *DirectMethod) GetAccount() string {
	return d.itsAccount
}

func (d *DirectMethod) GetBank() string {
	return d.itsBank
}

//实现PaymentMethod中的Pay方法
func Pay(pc Model.Paycheck)  {
	pc.SetField("Disposition","Direct")
}